﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="result.aspx.cs" Inherits="result" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>存款結果</title>
        <link href="pay.css" rel="stylesheet" type="text/css" />
    <script>
        var isSuccess= "<%=isSuccess %>";
        function AlertMsg(re){
            if(re=="success"){
                document.getElementById('alertimg').style.background = "url(right.jpg)";
                document.getElementById('msg').innerHTML ="恭喜您，存款成功";
            }
            else{
                document.getElementById('alertimg').style.background = "url(error.jpg)";            
                document.getElementById('msg').innerHTML ="存款失敗，請稍候再試";
            }
            
            var sec=3;
                var intervalid = window.setInterval(function(){
                    document.getElementById('second').innerHTML= sec;
                    sec--;
                    if(sec==0){
                        window.location.href="http://www.99salon.com/salongame.aspx";
                        window.clearInterval(intervalid);
                    }
                },1000);
        }
    </script>
</head>
<body onload="AlertMsg(isSuccess);" style="background-color:#0a0a0a;">
    <form id="form1" runat="server">
    <div id="main">
       <div id="alertimg"></div>
       <div id="alertmsg">
            <div id="msg"></div>       
            <div id="second_nav" style="font-size:12px; margin-top:5px; font-weight:lighter;">3秒后將返回遊戲網登陸頁:<span id="second">3</span>秒</div>
            <div id="back_nav" style="font-size:12px; margin-top:2px;font-weight:lighter;"><a href="http://www.99salon.com">馬上返回遊戲網首頁</a></div>            
       </div>
    </div>
    </form>
</body>
</html>
